package com.company.person.repository;

import com.company.person.pojo.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author jinpei
 * @version v1.0
 * @date 2019/4/23 22:44
 * @description TODO
 **/
public interface GoodsRepository extends ElasticsearchRepository<Goods,Long> {

    /**
     * 根据价格区间查询
     * @param from
     * @param to
     * @return
     */
    List<Goods> findByPriceBetween(Double from, Double to);
}
